import App from './App'
import uView from './uni_modules/vk-uview-ui';
import store from 'store/index.js'
import {tui,resInfo,Base64,navInfo} from './utils/common.js'
// #ifndef VUE3
import Vue from 'vue'
Vue.use(uView);
Vue.prototype.tui = tui
Vue.prototype.resInfo = resInfo
Vue.prototype.$Base64 = Base64
Vue.prototype.$navBarHeight = navInfo.navBarHeight

import * as wssApi from './common/socketForVideo.js'
Vue.prototype.$wssApi = wssApi

Vue.prototype.$avatar = require('@/static/setting/default_avatar.png')
Vue.prototype.$playImg = require('@/static/market/play-img.png')
Vue.prototype.$playingImg = require('@/static/market/playing-img.gif')
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif